package studay.factory.wechat;

import studay.factory.OrderFactory;
import studay.factory.PayFactory;
import studay.factory.RefundFactory;
import studay.factory.ali.AliPay;

/**
 * @program: 设计模式
 * @description: 微信支付基础类
 * @author: Tom
 * @create: 2022-01-05 22:12
 **/
public class WeChatOrderFactory implements OrderFactory {
    @Override
    public PayFactory createPay() {
        return new WeChatPay();
    }

    @Override
    public RefundFactory createRefund() {
        return new WeChatRefund();
    }
}
